<?
session_start();//
error_reporting(255);
define('SERVER_PATH','http://dev.psihologus.ro'); //WITHOUT / at the end
define('REAL_PATH',$_SERVER['DOCUMENT_ROOT']);

include("configs/open_db.php");
include("classes/xtemplate.class.php");
include("classes/functions.php");
include("rewrite_handler.php");
include("configs/includes.php");
/*if ( file_exists("./template/main.html") )
{
    $tpl = new XTemplate("main.html",'template');
} else {
    die('Nu exista nici un template selectat');
}*/
global $CONTACT;
$CONTACT = array(
    'CONTACT_TELEFON' => '0721338153',
    'CONTACT_EMAIL1' => 'crigco@yahoo.com',
    'CONTACT_EMAIL2' => 'office@psihologos.com',
    'CONTACT_ADRESA' => 'Str. Schitu Magureanu 27-33
    sc. B et. I ap. 55, interfon 13, sect . 1 Bucuresti
    intrare prin str. Grigore Cobalcescu, vis-a-vis Hotel Trianon'
);

define('MAIL_MESAj_CONTACT','crigco@yahoo.com');
define('CONTACT_ID', 10);

$tpl = XTemplate::getInstance();
$tpl->init("main.html",'template');
$tpl->assign("SERVER_PATH",SERVER_PATH);



$tpl->assign("REAL_PATH",REAL_PATH);
$tpl->assign($CONTACT);


//scot slashurile puse de magic_quotes
if (get_magic_quotes_gpc()) {
    $process = array(&$_GET, &$_POST, &$_COOKIE, &$_REQUEST);
    while (list($key, $val) = each($process)) {
        foreach ($val as $k => $v) {
            unset($process[$key][$k]);
            if (is_array($v)) {
                $process[$key][stripslashes($k)] = $v;
                $process[] = &$process[$key][stripslashes($k)];
            } else {
                $process[$key][stripslashes($k)] = stripslashes($v);
            }
        }
    }
    unset($process);
}


?>
